package com.cyh.testdesignpattern.strategy;

import android.util.Log;

//野鸭
public class WildDuck extends Duck {
    public WildDuck() {
        flyBehavior = new GoodFlyBehavior();
        quackBehavior = new CanQuackBehavior();
    }

    @Override
    public void display() {
        Log.i("WildDuck", "这是野鸭");
    }
}
